package org.liuh.designs.spider.tests;

import org.liuh.designs.spider.AreaConstant;
import org.liuh.designs.spider.ThreadPoolManager;
import org.liuh.designs.spider.dtos.AddressNode;

import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;

/**
 * @ClassName: HttpClientSpiderTest
 * @Description:
 * @Author: liuh
 * @Date: 2020/10/10 13:45
 * @Version: 1.0
 */
public class HttpClientSpiderTest {

    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();
        // 获取省份.
        AddressNode rootNode = AreaConstant.getRootNode(AreaConstant.HttpUtilEnum.HTTP_CLIENT);
        List<AddressNode> provinceList = rootNode.getChildNodeList();
        long endTime = System.currentTimeMillis();
        System.out.println("总耗时： " + (endTime - startTime) / 1000);
    }

}
